package com.yanrumiao.entity;

import cc.uncarbon.framework.crud.entity.HelioBaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cc.uncarbon.framework.core.enums.YesOrNoEnum;
import cc.uncarbon.framework.core.enums.EnabledStatusEnum;


/**
 * 评价
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(value = "appraise")
public class AppraiseEntity extends HelioBaseEntity<Long> {

    @Serial
    private static final long serialVersionUID = 1L;


    @Schema(description = "订单id")
    @TableField(value = "order_id")
    private Long orderId;

    @Schema(description = "评价内容")
    @TableField(value = "content")
    private String content;

    @Schema(description = "评分")
    @TableField(value = "rate")
    private Integer rate;

    @Schema(description = "店铺id")
    @TableField(value = "store_id")
    private Long storeId;

    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

}
